package com.flsldl.mydb.backend.utils;

import java.security.SecureRandom;
import java.util.Random;

/**
 * @ClassName RandomUtil
 * @Description TODO
 * @Author @O_o @Date 2023/2/18 下午 5:13
 */
public class RandomUtil {
    public static byte[] randomBytes(int length) {
        Random r = new SecureRandom();
        byte[] buf = new byte[length];
        r.nextBytes(buf);
        return buf;
    }
}
